package classes.view.component
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class SingleScoreBar extends Sprite
	{
		private var oneRoundText: TextField;
		private var weekText :TextField; 
		private var totalText :TextField; 
		
		
		public function SingleScoreBar()
		{
			super();
			init(); 
		}
		
		private function init():void
		{
			oneRoundText = this.getChildByName("one_round") as TextField; 
			weekText = this.getChildByName("week_score") as TextField; 
			totalText = this.getChildByName("total_score") as TextField; 
		}
		
		public function updateScores(_current:int, _uptoNow:int, _week:int, _total:int):void
		{
			oneRoundText.text = _current.toString() + "/" + _uptoNow.toString(); 
			weekText.text = _week.toString();
			totalText.text = _total.toString();
			
		}
	}
}